package com.igeek.collateral.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 入库记录
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("inbound")
@ApiModel(value="Inbound对象", description="入库记录")
public class Inbound implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "入库记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "入库单号")
    @TableField("num")
    private String num;

    @ApiModelProperty(value = "押品编号ID")
    @TableField("collateral_id")
    private Integer collateralId;

    @ApiModelProperty(value = "入库类型 0：正常入库 1：置换入库")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "入库说明")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "入库时间")
    @TableField("date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @ApiModelProperty(value = "入库状态 0：未入库  1：已入库  ")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "入库申请人  Member会员")
    @TableField("apply_staff")
    private String applyStaff;

    @ApiModelProperty(value = "入库审批人  资产销售员")
    @TableField("audit_staff")
    private String auditStaff;

    @ApiModelProperty(value = "入库审批结果 0：未通过  1：通过")
    @TableField("result")
    private Integer result;

    @ApiModelProperty(value = "版本号  乐观锁")
    @TableField("version")
    private Integer version;

    @ApiModelProperty(value = "是否删除  0：未删除  1：已删除")
    @TableField("is_deleted")
    private Integer isDeleted;


}
